﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class Hatch
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class Hatch
   ">
    <meta name="generator" content="docfx 2.56.4.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="netDxf.Entities.Hatch">
  
  
  <h1 id="netDxf_Entities_Hatch" data-uid="netDxf.Entities.Hatch" class="text-break">Class Hatch
  </h1>
  <div class="markdown level0 summary"><p>Represents a hatch <a class="xref" href="netDxf.Entities.EntityObject.html">EntityObject</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><a class="xref" href="netDxf.DxfObject.html">DxfObject</a></div>
    <div class="level2"><a class="xref" href="netDxf.Entities.EntityObject.html">EntityObject</a></div>
    <div class="level3"><span class="xref">Hatch</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="netDxf.IHasXData.html">IHasXData</a></div>
    <div><span class="xref">System.ICloneable</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_LayerChanged">EntityObject.LayerChanged</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_OnLayerChangedEvent_netDxf_Tables_Layer_netDxf_Tables_Layer_">EntityObject.OnLayerChangedEvent(Layer, Layer)</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_LinetypeChanged">EntityObject.LinetypeChanged</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_OnLinetypeChangedEvent_netDxf_Tables_Linetype_netDxf_Tables_Linetype_">EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_XDataAddAppReg">EntityObject.XDataAddAppReg</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_OnXDataAddAppRegEvent_netDxf_Tables_ApplicationRegistry_">EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_XDataRemoveAppReg">EntityObject.XDataRemoveAppReg</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_OnXDataRemoveAppRegEvent_netDxf_Tables_ApplicationRegistry_">EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Reactors">EntityObject.Reactors</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Type">EntityObject.Type</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Color">EntityObject.Color</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Layer">EntityObject.Layer</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Linetype">EntityObject.Linetype</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Lineweight">EntityObject.Lineweight</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Transparency">EntityObject.Transparency</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_LinetypeScale">EntityObject.LinetypeScale</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_IsVisible">EntityObject.IsVisible</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Normal">EntityObject.Normal</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Owner">EntityObject.Owner</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_XData">EntityObject.XData</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_TransformBy_netDxf_Matrix4_">EntityObject.TransformBy(Matrix4)</a>
    </div>
    <div>
      <a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_ToString">EntityObject.ToString()</a>
    </div>
    <div>
      <a class="xref" href="netDxf.DxfObject.html#netDxf_DxfObject_CodeName">DxfObject.CodeName</a>
    </div>
    <div>
      <a class="xref" href="netDxf.DxfObject.html#netDxf_DxfObject_Handle">DxfObject.Handle</a>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="netDxf.Entities.html">netDxf.Entities</a></h6>
  <h6><strong>Assembly</strong>: CADability.dll</h6>
  <h5 id="netDxf_Entities_Hatch_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Hatch : EntityObject, IHasXData, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Boolean_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.%23ctor(netDxf.Entities.HatchPattern%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L89">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch__ctor_" data-uid="netDxf.Entities.Hatch.#ctor*"></a>
  <h4 id="netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Boolean_" data-uid="netDxf.Entities.Hatch.#ctor(netDxf.Entities.HatchPattern,System.Boolean)">Hatch(HatchPattern, Boolean)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <code>Hatch</code> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Hatch(HatchPattern pattern, bool associative)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.HatchPattern.html">HatchPattern</a></td>
        <td><span class="parametername">pattern</span></td>
        <td><p><a class="xref" href="netDxf.Entities.HatchPattern.html">HatchPattern</a>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">associative</span></td>
        <td><p>Defines if the hatch is associative or not.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Boolean__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>This constructor is initialized with an empty list of boundary paths, remember a hatch without boundaries will be discarded when saving the file.<br>
When creating an associative hatch do not add the entities that make the boundary to the document, it will be done automatically. Doing so will throw an exception.<br>
The hatch boundary paths must be on the same plane as the hatch.
The normal and the elevation of the boundary paths will be omitted (the hatch elevation and normal will be used instead).
Only the x and y coordinates for the center of the line, ellipse, circle and arc will be used.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Collections_Generic_IEnumerable_netDxf_Entities_HatchBoundaryPath__System_Boolean_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.%23ctor(netDxf.Entities.HatchPattern%2CSystem.Collections.Generic.IEnumerable%7BnetDxf.Entities.HatchBoundaryPath%7D%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L116">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch__ctor_" data-uid="netDxf.Entities.Hatch.#ctor*"></a>
  <h4 id="netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Collections_Generic_IEnumerable_netDxf_Entities_HatchBoundaryPath__System_Boolean_" data-uid="netDxf.Entities.Hatch.#ctor(netDxf.Entities.HatchPattern,System.Collections.Generic.IEnumerable{netDxf.Entities.HatchBoundaryPath},System.Boolean)">Hatch(HatchPattern, IEnumerable&lt;HatchBoundaryPath&gt;, Boolean)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <code>Hatch</code> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Hatch(HatchPattern pattern, IEnumerable&lt;HatchBoundaryPath&gt; paths, bool associative)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.HatchPattern.html">HatchPattern</a></td>
        <td><span class="parametername">pattern</span></td>
        <td><p><a class="xref" href="netDxf.Entities.HatchPattern.html">HatchPattern</a>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="netDxf.Entities.HatchBoundaryPath.html">HatchBoundaryPath</a>&gt;</td>
        <td><span class="parametername">paths</span></td>
        <td><p>A list of <a class="xref" href="netDxf.Entities.HatchBoundaryPath.html">HatchBoundaryPath</a>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">associative</span></td>
        <td><p>Defines if the hatch is associative or not.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_Entities_Hatch__ctor_netDxf_Entities_HatchPattern_System_Collections_Generic_IEnumerable_netDxf_Entities_HatchBoundaryPath__System_Boolean__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The hatch boundary paths must be on the same plane as the hatch.
The normal and the elevation of the boundary paths will be omitted (the hatch elevation and normal will be used instead).
Only the x and y coordinates for the center of the line, ellipse, circle and arc will be used.</p>
</div>
  <h3 id="properties">Properties
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_Associative.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.Associative%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L180">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_Associative_" data-uid="netDxf.Entities.Hatch.Associative*"></a>
  <h4 id="netDxf_Entities_Hatch_Associative" data-uid="netDxf.Entities.Hatch.Associative">Associative</h4>
  <div class="markdown level1 summary"><p>Gets if the hatch is associative or not, which means if the hatch object is associated with the hatch boundary entities.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Associative { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_BoundaryPaths.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.BoundaryPaths%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L172">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_BoundaryPaths_" data-uid="netDxf.Entities.Hatch.BoundaryPaths*"></a>
  <h4 id="netDxf_Entities_Hatch_BoundaryPaths" data-uid="netDxf.Entities.Hatch.BoundaryPaths">BoundaryPaths</h4>
  <div class="markdown level1 summary"><p>Gets the hatch boundary paths.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ObservableCollection&lt;HatchBoundaryPath&gt; BoundaryPaths { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Collections.ObservableCollection-1.html">ObservableCollection</a>&lt;<a class="xref" href="netDxf.Entities.HatchBoundaryPath.html">HatchBoundaryPath</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_Entities_Hatch_BoundaryPaths_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The hatch must contain at least on valid boundary path to be able to add it to the DxfDocument, otherwise it will be rejected.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_Elevation.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.Elevation%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L188">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_Elevation_" data-uid="netDxf.Entities.Hatch.Elevation*"></a>
  <h4 id="netDxf_Entities_Hatch_Elevation" data-uid="netDxf.Entities.Hatch.Elevation">Elevation</h4>
  <div class="markdown level1 summary"><p>Gets or sets the hatch elevation, its position along its normal.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double Elevation { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_Pattern.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.Pattern%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L153">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_Pattern_" data-uid="netDxf.Entities.Hatch.Pattern*"></a>
  <h4 id="netDxf_Entities_Hatch_Pattern" data-uid="netDxf.Entities.Hatch.Pattern">Pattern</h4>
  <div class="markdown level1 summary"><p>Gets the hatch pattern.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public HatchPattern Pattern { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.HatchPattern.html">HatchPattern</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_Clone.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.Clone%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L503">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_Clone_" data-uid="netDxf.Entities.Hatch.Clone*"></a>
  <h4 id="netDxf_Entities_Hatch_Clone" data-uid="netDxf.Entities.Hatch.Clone">Clone()</h4>
  <div class="markdown level1 summary"><p>Creates a new Hatch that is a copy of the current instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override object Clone()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Object</span></td>
        <td><p>A new Hatch that is a copy of this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_Clone">EntityObject.Clone()</a></div>
  <h5 id="netDxf_Entities_Hatch_Clone_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>If the hatch is associative the referenced boundary entities will not be automatically cloned, its associative property will be set to false.
Use CreateBoundary if required after cloning.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_CreateBoundary_System_Boolean_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.CreateBoundary(System.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L230">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_CreateBoundary_" data-uid="netDxf.Entities.Hatch.CreateBoundary*"></a>
  <h4 id="netDxf_Entities_Hatch_CreateBoundary_System_Boolean_" data-uid="netDxf.Entities.Hatch.CreateBoundary(System.Boolean)">CreateBoundary(Boolean)</h4>
  <div class="markdown level1 summary"><p>Creates a list of entities that represents the boundary of the hatch and optionally associates to it.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;EntityObject&gt; CreateBoundary(bool linkBoundary)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">linkBoundary</span></td>
        <td><p>Indicates if the new boundary will be associated with the hatch, turning the associative property to true.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="netDxf.Entities.EntityObject.html">EntityObject</a>&gt;</td>
        <td><p>A list of entities that makes the boundary of the hatch.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_Entities_Hatch_CreateBoundary_System_Boolean__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>If the actual hatch is already associative, the old boundary entities will be unlinked, but not deleted from the hatch document.
If linkBoundary is true, the new boundary entities will be added to the same layout and document as the hatch, in case it belongs to one,
so, in this case, if you also try to add the return list to the document it will cause an error.<br>
All entities are in world coordinates except the LwPolyline boundary path since by definition its vertexes are expressed in object coordinates.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_OnHatchBoundaryPathAddedEvent_netDxf_Entities_HatchBoundaryPath_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.OnHatchBoundaryPathAddedEvent(netDxf.Entities.HatchBoundaryPath)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L42">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_OnHatchBoundaryPathAddedEvent_" data-uid="netDxf.Entities.Hatch.OnHatchBoundaryPathAddedEvent*"></a>
  <h4 id="netDxf_Entities_Hatch_OnHatchBoundaryPathAddedEvent_netDxf_Entities_HatchBoundaryPath_" data-uid="netDxf.Entities.Hatch.OnHatchBoundaryPathAddedEvent(netDxf.Entities.HatchBoundaryPath)">OnHatchBoundaryPathAddedEvent(HatchBoundaryPath)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual void OnHatchBoundaryPathAddedEvent(HatchBoundaryPath item)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.HatchBoundaryPath.html">HatchBoundaryPath</a></td>
        <td><span class="parametername">item</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_OnHatchBoundaryPathRemovedEvent_netDxf_Entities_HatchBoundaryPath_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.OnHatchBoundaryPathRemovedEvent(netDxf.Entities.HatchBoundaryPath)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L55">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_OnHatchBoundaryPathRemovedEvent_" data-uid="netDxf.Entities.Hatch.OnHatchBoundaryPathRemovedEvent*"></a>
  <h4 id="netDxf_Entities_Hatch_OnHatchBoundaryPathRemovedEvent_netDxf_Entities_HatchBoundaryPath_" data-uid="netDxf.Entities.Hatch.OnHatchBoundaryPathRemovedEvent(netDxf.Entities.HatchBoundaryPath)">OnHatchBoundaryPathRemovedEvent(HatchBoundaryPath)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual void OnHatchBoundaryPathRemovedEvent(HatchBoundaryPath item)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.HatchBoundaryPath.html">HatchBoundaryPath</a></td>
        <td><span class="parametername">item</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_TransformBy_netDxf_Matrix3_netDxf_Vector3_.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.TransformBy(netDxf.Matrix3%2CnetDxf.Vector3)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L420">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_TransformBy_" data-uid="netDxf.Entities.Hatch.TransformBy*"></a>
  <h4 id="netDxf_Entities_Hatch_TransformBy_netDxf_Matrix3_netDxf_Vector3_" data-uid="netDxf.Entities.Hatch.TransformBy(netDxf.Matrix3,netDxf.Vector3)">TransformBy(Matrix3, Vector3)</h4>
  <div class="markdown level1 summary"><p>Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override void TransformBy(Matrix3 transformation, Vector3 translation)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Matrix3.html">Matrix3</a></td>
        <td><span class="parametername">transformation</span></td>
        <td><p>Transformation matrix.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">translation</span></td>
        <td><p>Translation vector.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="netDxf.Entities.EntityObject.html#netDxf_Entities_EntityObject_TransformBy_netDxf_Matrix3_netDxf_Vector3_">EntityObject.TransformBy(Matrix3, Vector3)</a></div>
  <h5 id="netDxf_Entities_Hatch_TransformBy_netDxf_Matrix3_netDxf_Vector3__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Matrix3 adopts the convention of using column vectors to represent a transformation matrix.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_UnLinkBoundary.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.UnLinkBoundary%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L203">View Source</a>
  </span>
  <a id="netDxf_Entities_Hatch_UnLinkBoundary_" data-uid="netDxf.Entities.Hatch.UnLinkBoundary*"></a>
  <h4 id="netDxf_Entities_Hatch_UnLinkBoundary" data-uid="netDxf.Entities.Hatch.UnLinkBoundary">UnLinkBoundary()</h4>
  <div class="markdown level1 summary"><p>Unlinks the boundary from the hatch, turning the associative property to false.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;EntityObject&gt; UnLinkBoundary()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="netDxf.Entities.EntityObject.html">EntityObject</a>&gt;</td>
        <td><p>The list of unlinked entities from the boundary of the hatch.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_Entities_Hatch_UnLinkBoundary_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The entities that make the hatch boundaries will not be deleted from the document if they already belong to one.</p>
</div>
  <h3 id="events">Events
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_HatchBoundaryPathAdded.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.HatchBoundaryPathAdded%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L40">View Source</a>
  </span>
  <h4 id="netDxf_Entities_Hatch_HatchBoundaryPathAdded" data-uid="netDxf.Entities.Hatch.HatchBoundaryPathAdded">HatchBoundaryPathAdded</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public event Hatch.HatchBoundaryPathAddedEventHandler HatchBoundaryPathAdded</code></pre>
  </div>
  <h5 class="eventType">Event Type</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.Hatch.HatchBoundaryPathAddedEventHandler.html">Hatch.HatchBoundaryPathAddedEventHandler</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch_HatchBoundaryPathRemoved.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch.HatchBoundaryPathRemoved%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L53">View Source</a>
  </span>
  <h4 id="netDxf_Entities_Hatch_HatchBoundaryPathRemoved" data-uid="netDxf.Entities.Hatch.HatchBoundaryPathRemoved">HatchBoundaryPathRemoved</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public event Hatch.HatchBoundaryPathRemovedEventHandler HatchBoundaryPathRemoved</code></pre>
  </div>
  <h5 class="eventType">Event Type</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Entities.Hatch.HatchBoundaryPathRemovedEventHandler.html">Hatch.HatchBoundaryPathRemovedEventHandler</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="netDxf.IHasXData.html">IHasXData</a>
  </div>
  <div>
      <span class="xref">System.ICloneable</span>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_Entities_Hatch.md&amp;value=---%0Auid%3A%20netDxf.Entities.Hatch%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/Entities/Hatch.cs/#L33" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
